package com.hzj.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author hzj
 * @since 2021-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("Hospital_info")
public class HospitalInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 给医院分配的唯一标识
     */
    @TableField("hoscode")
    private String hoscode;

    /**
     * 医院名称
     */
    @TableField("hosname")
    private String hosname;

    /**
     * 对应dict表的医院等级
     */
    private Integer hostype;


    /**
     * 对应dict表的省份
     */
    @TableField("provinceCode")
    private Integer provincecode;

    /**
     * 对应dict表的市
     */
    @TableField("cityCode")
    private Integer citycode;

    /**
     * 对应dict表的区/县
     */
    @TableField("districtCode")
    private Integer districtcode;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 医院logo地址
     */
    @TableField("logoData")
    private String logodata;

    /**
     * 医院简介
     */
    private String intro;

    private String route;

    /**
     * bookingRule表id
     */
    @TableField("bookingRule_id")
    private Integer bookingRuleId;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date timestamp;

    @TableField(exist = false)
    private Bookingrule bookingRule;
}
